/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utils;

import java.io.Serializable;
import java.text.DecimalFormat;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 *
 * @author jmoura
 */
public class SmUtils implements Serializable {

    private static final Log log = LogFactory.getLog(SmUtils.class);

    public static DecimalFormat getMyFormatter() {
        DecimalFormat myFormatter = new DecimalFormat("###,###");
        return myFormatter;
    }

    public static String lpad(String original, char add, int size) {
        String ret = "";
        while ((ret.length() + original.length()) < size) {
            ret += add;
        }
        ret = ret.concat(original);
        return ret;
    }

    public static void print(String linha) {
        System.out.println(linha);
    }

    public static void print() {
        System.out.println();
    }
}
